class MySessionFilters
{
	def filters = 
	{
		mySessionCheck(controller:"*", action:"*")
		{
			before = 
			{
				if(!session.userId && controllerName != "login")
				{
					redirect(controller:"login", action:"sessionInvalid");
					return false;
				}
			}
		}
	}
}